class Device {
  final String name;
  final String pic;
  final String price;

  Device({required this.name, required this.pic, required this.price});

  factory Device.fromMap(Map map) {
    return Device(name: map["name"] ?? "", pic: map["pic"] ?? "", price: map["price"] ?? "");
  }
}
